/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

import java.io.Serializable;

/**
 *
 * @author buben
 */
public class Comment implements Serializable {
    
    private int id;
    private String title;
    private String content;
    private int autorId;

    public Comment(int id, String title, String content, int autorId) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.autorId = autorId;
    }

    public void setAutorId(int autorId) {
        this.autorId = autorId;
    }

    public int getAutorId() {
        return autorId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Comment other = (Comment) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + this.id;
        return hash;
    }
    
}
